package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
@Getter
@Setter
public class Question extends BaseDomain{
    //推荐状态
    public static final Integer STATE_HOT = 1;
    //普通状态
    public static final Integer STATE_NORMAL = 0;
    //禁用状态
    public static final Integer STATE_BAN = -1;

    //问题创建日期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    //问题内容
    private String content;
    //状态
    private Integer state = 0;
    //提出该问题的用户
    private User user;
    //是否回答过
    private Boolean isAnswer = false;
    //回答总数
    private Integer answerSum = 0;




}